package 
{
	import com.furusystems.external.osc.AS3Osc;
	import com.furusystems.external.osc.core.IAS3OscController;
	import com.furusystems.external.osc.core.Protocol;
	import flash.display.Sprite;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Andreas Rønning
	 */
	public class Main extends Sprite 
	{
		public function Main():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
			var osc:IAS3OscController = new AS3Osc(Protocol.UDP, false);
			osc.connect("localhost", 9777);
		}
		
	}
	
}